package com.xin.di.uav.applet.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xin.di.uav.po.OrderCommodity;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderDetailResp {
    private String id;

    @Schema(description = "收件人手机号")
    private String payPhone;
    @Schema(description = "收件人姓名")
    private String receiveName;
    @Schema(description = "总数")
    private Integer totalCnt;

    private String orderNo;

    private BigDecimal totalAmount;

    private BigDecimal expressFee;

    private String deliveryPointName;

    private Integer status;

    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date expireTime;

    private Date createdAt;

    @Schema(description = "无人机编码")
    private String pickUpCode;

    private Date updatedAt;

    private Date confirmPayTime;

    List<OrderCommodityResp> orderCommodities;
    private Date estimatedDeliveryTime;

    @Data
    public static class OrderCommodityResp {

        @ApiModelProperty("商品id")
        private String commodityId;

        @ApiModelProperty("数量")
        private Integer cnt;

        @ApiModelProperty("单价")
        private BigDecimal price;

        @ApiModelProperty("商品名称")
        private String name;

        @ApiModelProperty("图片数组，主图放在第一")
        private String images;

        @ApiModelProperty("商品简介")
        private String introduction;



        /**
         * 规格值
         */
        private String value;

        private String value2;

        private String value3;

        private String value4;
        private String value5;
    }
}
